home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
02
/
8
/
DISK0283.ZIP
/
DTK.DOC
< prev
next >
Wrap
Text File
|
1986-11-09
|
9KB
|
346 lines
╔═══════════════════════════╗
║ Directory Toolkit ║
║(C) 1984 By Gary W. Morris║
║ 3317 Columbine ║
║ Lebanon, Oregon 97355 ║
║ 503-259-1462 ║
╚═══════════════════════════╝
This Program was written in order to fill several needs which I
had. One need was to have a good way to keep track of what was on a
disk. A very good Label printing program called `Diskette Manager'
was just what the doctor ordered except for one thing -- it only
served one of my needs. Another need was to allow me to add or change
the Volume label on a Disk after it had been formatted. Several
programs allow this function (Volser.com - a public domain program,
and Label.com by Peter Norton, just to name two) but again it only
served one of my needs and more importantly I wanted some unique
utilities that were MENU driven.
Several other utilities (Change Attributes, Sort Directory,
Display a `RUN MENU ') are also available , But WHERE could I get
them all on one Menu-Driven Disk ? Probably the most Unique utility
on my DIRECTORY TOOLKIT Disk is the one that easily allows you to
change the Date and Time-Stamp of each file. Norton describes the
usefulness of this utility on page 43 of his Utilities under the
`SecMod' Command. But it is not something that is easily done unless
you are willing to decode the 16 bit unsigned integer,as I was, and
then change the correct sector location on the disk. Not something
easy for most programmers.
So because of the reasons above I wrote this set of MENU-DRIVEN
Utilities that allows editing by placing the cursor on the old data.
Many thanks to Brett Salter for his help and his fine set of Programs
`Peeks n Pokes' and `The Inside Track' without which these utilities
would have been much more difficult.
-2-
There are currently 9 options on the MENU and although all of
them are pretty much self explanatory, I will say a few words about
each.
OPTION ( 1 ) - Display `Run Menu' for all (*.bas) Programs.
This option allows you to have a Menu of all the basic programs
on any disk and be able to Load and run them without having to
enter the file name. Just enter the correct file number and it
will be loaded and run. You may want to add a `Run A:DTK.BAS'
line to the other programs that you run frequently to return to
this utility. (Can LOAD and RUN On MS-BASIC version ONLY)
OPTION ( 2 ) - Display Complete Directory (File Names Only).
This option allows you to see all files including hidden and the
Volume-Id up to 105 at a time. No attributes,file size or any
other information is displayed.
OPTION ( 3 ) - Display/Edit Filenames,Attributes,Date-Stamp.
This option allows you to:
( a ) - Rename a File or Volume-Id.
IMPORTANT - Normal DOS conventions are not
necessarily followed as spaces in a name are allowed
but you may find that having those spaces can cause
problems.
-3-
( b ) - Edit the file attribute.
Enter the correct decimal number for the desired
attribute.
Note: it is not reccommed to change these unless you
have an express purpose in mind. The following codes
in decimal apply:
01 = Read-Only file
02 = Hidden
04 = System
06 = hidden and System
08 = Volume-Id
16 = Sub-Directory
32 = Archive
39 = Read-Only,Hidden,System,Archive
Example: 1 + 2 + 4 + 32 = 39
( c ) - Edit Date-Stamp.
Enter the Month, Day, and Year or just enter
<return> to Quit. Changing the date-stamps for all
similar files can make them much easier to spot.
( d ) - Edit Time-Stamp.
Enter the Hours in 24 hour notation, the Minutes,
and Seconds or press <return> to return to menu.
OPTION ( 4 ) - Write Sorted Directory back to Disk.
This option allows you to sort all the files except the two
system files (IBMBIO.COM and IBMDOS.COM) and write them back to
the disk in their new sorted order. If you choose this option
you may answer YES or NO to the question of sorting on the label
printing option.
-4-
OPTION ( 5 ) - Read Next Disk or Change Disk Drive.
Use this option to verify any changes you made to the disk or if
you change Disks. Drives `A' and `B' should NOT be Hard Disks.
OPTION ( 6 ) - Change Disk Name.
This option is used mainly for the title on your disk labels.
So if you want to change the title on your new disk label then
use this option before printing a label.
NOTE: Also on any ERROR the program will automatically go to
this option. To determine what the error was may require
you to temporarily place a REM statement at the begining
of line 530. (On MS-BASIC version ONLY)
OPTION ( 7 ) - Change Date/Time.
These are for the system date and time and should be set to
insure any updates to your files will have the correct date and
time mark. If not you may have files with a date of 1-1-80 and
of course that is why I have written OPTION ( 3 ).
OPTION ( 8 ) - Print Disk Label.
This option was written for the Epson Printers and may not work
correctly on other brands.
Line the Right Hand edge of the 4 x 1 7/16 Label Wax paper on the
number 43 of the print bar and the print head on the bottom edge
of the hole just above the label.
OPTION ( 9 ) - Add Volume-Id.
Enter a maximum of 11 characters to add a new Volume-Id.
-5-
NOTES:
A. I felt it was a good idea to not sort the two system files
(IBMBIO.COM AND IBMDOS.COM) but in the basic version of this
program it is possible to change it so that ALL files will be
sorted.
B. Also I like to first name the Volume-Id `AAA' and choose
option ( 4 ) to write the files back to disk, then afterwards
rename the Volume-Id whatever name is approiate. This way the
System files are always the first two files listed and the
Volume-Id is the third.
C. This program is being distributed two ways, Compiled for
speed and in Interpreted MS-BASIC for programmers who like to
study and perhaps modify others source code. On the compiled
version the first option will only display the basic programs
for a given disk. It will not allow you to Load and Run them.
The cost of the compiled program is $10.00 and the cost of the
Interpreted MS-BASIC version is $19.95.
D. The DOS function call that used to bomb on machines running
a 8086 or 80286 with the error "division by zero" has been
fixed.
E. Any suggestions for improvement are welcome and invited.
Any suggestions for improvement are we